package com.tingfeng.Service;

import com.tingfeng.Dao.UserDao;

public class UserServiceImpl implements UserService{
    private UserDao userDao;
    // 增加一个set方法 程序不再具有主动性，而是变成了被动的接收对象 ioc案例
    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void getSqlInfo() {
        userDao.getSqlInfo();
    }
}
